package org.example.service;

import org.example.error.BusinessException;
import org.example.service.model.OrderModel;

/**
 * @Author itmei
 * @Package org.example.service
 * @Date 2025/6/2 19:50
 */
public interface OrderService {
    //通过前端url传过来，秒杀活动id，然后下单接口内校验对应id是否属于对应商品活动已开启
    OrderModel createOrder(Integer userId,Integer itemId,Integer promoId,Integer amount) throws BusinessException;
}
